Starting Table 3 rerun: 2 local model(s) + 2 domain-adaptation model(s).

========================================================================
 [Local 1/2] Korea | RF | seed=12
========================================================================
Training Features Shape: (5863, 19)
Training Labels Shape:   (5863,)
Testing Features Shape:  (5864, 19)
Testing Labels Shape:    (5864,)

Model Performance Metrics:
-------------------------
Accuracy:  0.9509
Precision: 0.8630
Recall:    0.8344

Detailed Classification Report:
              precision    recall  f1-score   support

           0       0.97      0.97      0.97      4898
           1       0.86      0.83      0.85       966

    accuracy                           0.95      5864
   macro avg       0.92      0.90      0.91      5864
weighted avg       0.95      0.95      0.95      5864


========================================================================
 [Local 2/2] Germany | RF | seed=76
========================================================================
Training Features Shape: (1192, 19)
Training Labels Shape:   (1192,)
Testing Features Shape:  (1193, 19)
Testing Labels Shape:    (1193,)

Model Performance Metrics:
-------------------------
Accuracy:  0.9514
Precision: 0.8933
Recall:    0.8030

Detailed Classification Report:
              precision    recall  f1-score   support

           0       0.96      0.98      0.97       995
           1       0.89      0.80      0.85       198

    accuracy                           0.95      1193
   macro avg       0.93      0.89      0.91      1193
weighted avg       0.95      0.95      0.95      1193


========================================================================
 [Domain Adaptation 1/2] Korea -> Germany | RF + CORAL | seed=42
========================================================================
Training Features Shape: (7295, 19)
Training Labels Shape:   (7295,)
Testing Features Shape:  (1313, 19)
Testing Labels Shape:    (1313,)
Applying independent scaling to source and target data...

Model Evaluation:
-------------------------
Accuracy:  0.9345
Precision: 0.9179
Recall:    0.7189

Detailed Classification Report:
              precision    recall  f1-score   support

           0       0.94      0.98      0.96      1064
           1       0.92      0.72      0.81       249

    accuracy                           0.93      1313
   macro avg       0.93      0.85      0.88      1313
weighted avg       0.93      0.93      0.93      1313


========================================================================
 [Domain Adaptation 2/2] Korea -> Poland | RF + CORAL | seed=26
========================================================================
Training Features Shape: (7295, 19)
Training Labels Shape:   (7295,)
Testing Features Shape:  (1359, 19)
Testing Labels Shape:    (1359,)
Applying independent scaling to source and target data...

Model Evaluation:
-------------------------
Accuracy:  0.9536
Precision: 0.6518
Recall:    0.7526

Detailed Classification Report:
              precision    recall  f1-score   support

           0       0.98      0.97      0.97      1262
           1       0.65      0.75      0.70        97

    accuracy                           0.95      1359
   macro avg       0.82      0.86      0.84      1359
weighted avg       0.96      0.95      0.96      1359


========================================================================
 Final reproducible rerun table
========================================================================
Models, Transfer/training, Precision %, Recall %, Accuracy %, Seed, Source, Target
Korea Model, Local, 86.30, 83.44, 95.09, 12, Korea, Korea
Germany Model, Local, 89.33, 80.30, 95.14, 76, Germany, Germany
Korea → Germany, Domain Adaptation, 91.79, 71.89, 93.45, 42, Korea, Germany
Korea → Poland, Domain Adaptation, 65.18, 75.26, 95.36, 26, Korea, Poland

Results written to '/mnt/data/Table3_WBG_PR_closeout_package/outputs/table3_reproducible_rerun.csv'.
Dataset diagnostics written to '/mnt/data/Table3_WBG_PR_closeout_package/outputs/table3_dataset_diagnostics.csv'.
Validation written to '/mnt/data/Table3_WBG_PR_closeout_package/outputs/table3_report_validation.csv'.
Table 3 closeout workflow completed.
